from fastapi import APIRouter

from app.corelibs.http_response import partner_success
from app.schemas.system.exec_cmd import ExecCmd
from app.utils.test_tools import execute_command

router = APIRouter()


@router.post('/execCmd', description="test")
async def exec_cmd(params: ExecCmd):
    data = execute_command(params)
    return partner_success(data)
